package com.aode.music.viewmodel;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;

import com.aode.common.bean.request.ChatData;
import com.aode.common.bean.response.News;
import com.aode.music.repository.WebRepository;

import java.util.List;

public class FriendViewModel extends AndroidViewModel {
    private WebRepository repository;
    public FriendViewModel(@NonNull Application application) {
        super(application);
        this.repository = new WebRepository(application);
    }
    public void getNews(ChatData chatData){
        repository.getNews(chatData);
    }
    public MutableLiveData<List<News>> getNewsLiveData(){
        return repository.getNewsMutableLiveData();
    }
}
